﻿using Brilliant_see.Core.AbstractClass;
using Brilliant_see.Core.structs;

namespace Brilliant_see.Core.Interfaces;

/// <summary>
/// 漫画图源接口，提供获取图源方法
/// </summary>
public interface IMapSource
{
    HttpClient HttpClient { get; set; }

    /// <summary>
    /// 获取对应章节图片的枚举器
    /// </summary>
    /// <param name="chapter"></param>
    /// <returns></returns>
    IEnumerator<string> GetPicEnumerator(Chapter chapter);

    /// <summary>
    /// 获取搜索枚举器
    /// </summary>
    /// <param name="keyWord"></param>
    /// <returns></returns>
    Task<IEnumerator<Comic>> GetSearchEnumeratorAsync(string keyWord);

    string ToString();
}